package com.sskj.mine.bean;

import com.sskj.common.base.App;
import com.sskj.mine.R;

import java.io.Serializable;

public enum AccountEnum implements Serializable {
    钱包账户(1, App.INSTANCE.getString(R.string.mine_exchangeConfigBean1)),
    币币账户(2, App.INSTANCE.getString(R.string.mine_exchangeConfigBean2)),
    法币账户(3, App.INSTANCE.getString(R.string.mine_exchangeConfigBean3)),
    ;

    private String title;
    private Integer type;

    AccountEnum(Integer type, String title) {
        this.title = title;
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTitle() {
        switch (type) {
            case 1:
                return App.INSTANCE.getString(R.string.mine_exchangeConfigBean1);
            case 2:
                return App.INSTANCE.getString(R.string.mine_exchangeConfigBean2);
            case 3:
                return App.INSTANCE.getString(R.string.mine_exchangeConfigBean3);
        }
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
